#ifndef _BSP_UART_H
#define _BSP_UART_H

#ifdef  __cplusplus
    extern "C" {
#endif
/*-----------------------------------------------------------------------
|                               Includes                                |
-----------------------------------------------------------------------*/
#include "stm32_uart.h"
#include "usart.h"
//#include "FreeRTOS.h"
//#include "queue.h"
#include "cQueue.h"
#include "task_main.h"
/*-----------------------------------------------------------------------
|                                define                                 |
-----------------------------------------------------------------------*/
//*** <<< Use Configuration Wizard in Context Menu >>> ***
//<h> UART buffer size setting
//<o> Send FIFO Length <i> 发送队列的长度(Byte)
#define TXFIFO_LENGTH 256


//</h>

//*** <<< end of configuration section >>>    ***





/*-----------------------------------------------------------------------
|                             API FUNCTION                              |
-----------------------------------------------------------------------*/
extern RxHandle_t hrx1;
extern TxHandle_t htx1;
// void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart);
void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart);
void UART_BSP_Init(void);
void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size);
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin);



#ifdef __cplusplus
}
#endif
#endif
